<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.bluesky.dreamer.entity.LoginMessage"%>
<%
String path = request.getContextPath();
LoginMessage login=(LoginMessage)request.getSession().getAttribute("loginsession");
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../../nresources/default/css/portalet.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path %>/common/page/js/jquery.js"></script>
<SCRIPT LANGUAGE="JavaScript"> 
	//开户
	function orderSucc(){
		$("#orderformId").submit();
	}
	//作废
	function orderFail(){
		var url="ordermanage!orderFail.do";
		$("#orderformId").attr("action",url);
		$("#orderformId").submit();
	}
	//邀请写卡
	function invationCard(){
		var url="ordermanage!orderInvation.do";
		$("#orderformId").attr("action",url);
		$("#orderformId").submit();
	}
</SCRIPT>
</head>
<body>
<!-- 表单 Start -->
<DIV id="Operation_Table">
	<div class="title">
		<div class="titleleft">订单详情</div>
		<!-- 表单title -->
	</div>
	<!-- 表单title -->
	<!-- 表单内容 Start-->
	<div id="Info_table">
		<form action="ordermanage!orderSucc.do" name="orderform" id="orderformId" method="post">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<th width="120">号码：</th>
					<td colspan="3" >
					${model.phonenum}
					<input type="hidden" name="ordernum" id="ordernumId" value="${model.ordernum}">
			    </tr>
			    <tr>
					<th width="120">选号费：</th>
					<td colspan="3" >
					${model.num_fee}(元)
			    </tr>
			     <!--<tr>
					<th width="120">预约工号：</th>
					<td colspan="3" >
					${model.appointmentName}
			    </tr>
			    --><tr>
					<th width="120">客户名称：</th>
					<td colspan="3" >
					${model.custName}
			    </tr>
			    <tr>
					<th width="120">证件号码：</th>
					<td colspan="3" >
					${model.identityNum}
			    </tr>
			    <tr>
					<th width="120">证件有效期：</th>
					<td colspan="3" >
					${model.idValidTime}
			    </tr>
			    <tr>
					<th width="120">联系号码：</th>
					<td colspan="3" >
					${model.contactNum}
			    </tr>
			    <tr>
					<th width="120">证件地址：</th>
					<td colspan="3" >
					${model.addr}
			    </tr>
			    <tr>
					<th width="120">联系地址：</th>
					<td colspan="3" >
					${model.contactAddr}
			    </tr>
			    <tr>
					<th width="120">预约人：</th>
					<td colspan="3" >
					${model.appointmentName}
			    </tr>
			    <tr>
					<th width="120">预约时间：</th>
					<td colspan="3" >
					${model.appointmentTime}
			    </tr>
			    <tr>
					<th width="120">所选套餐：</th>
					<td colspan="3" >
					${model.packageName}
			    </tr>
			    <tr>
					<th width="120">订单状态：</th>
					<td colspan="3" >
					${model.flag}
			    </tr>
			    <tr>
					<th width="120">订单总额：</th>
					<td colspan="3" >
					${model.totalfee}
			    </tr>
				<tr>
					<th>订单处理意见：</th>
					<td colspan="3"><textarea name="remark" id="remarkId" cols="45" rows="5">
							${model.remark}
						</textarea>
				    (限定字数：4000)</td>
	            </tr>
			</table>
		</form>
	</div>
	<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
		<!-- 按扭背景 start -->
		<tr>
		  <td width="30" align="center" id="footer">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="开户" onclick="orderSucc()">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="订单作废" onclick="orderFail()">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="邀请写卡" onclick="invationCard()">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="返回" onclick="window.location.href='orderundo.jsp'">
		  </td>
		</tr>
		<!-- 按扭背景 end -->
	</table>
	<!-- 表单内容 End -->
</DIV>
</body>
</html>
